#include "proj.h"


uint32 Os_SysTick;
boolean Net_FlgHallSens1;
boolean Net_FlgHallSens2;
boolean Net_FlgHallSens3;

void HallIn_initialize()
{
	Net_FlgHallSens1 = 0;
	Net_FlgHallSens2 = 0;
	Net_FlgHallSens3 = 0;
	Os_SysTick = 0;
}

void HallIn_step()
{
	Net_FlgHallSens1 = (boolean)GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_6);
	Net_FlgHallSens2 = (boolean)GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_7);
	Net_FlgHallSens3 = (boolean)GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_8);
	Os_SysTick = SysTick->VAL;
}
